/*
* Copyright 2025 NXP
* NXP Proprietary. This software is owned or controlled by NXP and may only be used strictly in
* accordance with the applicable license terms. By expressly accepting such terms or by downloading, installing,
* activating and/or otherwise using the software, you are agreeing that you have read, and that you agree to
* comply with and are bound by, such license terms.  If you do not agree to be bound by the applicable license
* terms, then you may not retain, install, activate or otherwise use the software.
*/

#include "lvgl.h"
#include <stdio.h>
#include "gui_guider.h"
#include "events_init.h"
#include "widgets_init.h"
#include "custom.h"

extern unsigned int counter;
char buf[4];
// static uint16_t sta_buf[1] = {0};

void setup_scr_settings_1(lv_ui *ui)
{
    lv_group_t * main_group = lv_group_create();//创建一个组
    lv_indev_set_group(indev_keypad, main_group);

    //Write codes settings_1
    ui->settings_1 = lv_obj_create(NULL);
    lv_obj_set_size(ui->settings_1, 240, 320);
    lv_obj_set_scrollbar_mode(ui->settings_1, LV_SCROLLBAR_MODE_OFF);

    //Write style for settings_1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
    lv_obj_set_style_bg_opa(ui->settings_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_color(ui->settings_1, lv_color_hex(guider_ui.color.backlight), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_grad_dir(ui->settings_1, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write codes settings_1_bar_1
    ui->settings_1_bar_1 = lv_bar_create(ui->settings_1);
    lv_obj_set_style_anim_time(ui->settings_1_bar_1, 1000, 0);
    lv_bar_set_mode(ui->settings_1_bar_1, LV_BAR_MODE_NORMAL);
    lv_bar_set_range(ui->settings_1_bar_1, 0, 100);
    lv_bar_set_value(ui->settings_1_bar_1, 80, LV_ANIM_OFF);
    lv_obj_set_pos(ui->settings_1_bar_1, 63, 75);
    lv_obj_set_size(ui->settings_1_bar_1, 111, 5);

    //Write style for settings_1_bar_1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
    lv_obj_set_style_bg_opa(ui->settings_1_bar_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_color(ui->settings_1_bar_1, lv_color_hex(0xdddddd), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_grad_dir(ui->settings_1_bar_1, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_radius(ui->settings_1_bar_1, 10, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_width(ui->settings_1_bar_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write style for settings_1_bar_1, Part: LV_PART_INDICATOR, State: LV_STATE_DEFAULT.
    lv_obj_set_style_bg_opa(ui->settings_1_bar_1, 255, LV_PART_INDICATOR|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_color(ui->settings_1_bar_1, lv_color_hex(0x2195f6), LV_PART_INDICATOR|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_grad_dir(ui->settings_1_bar_1, LV_GRAD_DIR_NONE, LV_PART_INDICATOR|LV_STATE_DEFAULT);
    lv_obj_set_style_radius(ui->settings_1_bar_1, 10, LV_PART_INDICATOR|LV_STATE_DEFAULT);

    //Write codes settings_1_btn_minus
    ui->settings_1_btn_minus = lv_btn_create(ui->settings_1);
    ui->settings_1_btn_minus_label = lv_label_create(ui->settings_1_btn_minus);
    lv_label_set_text(ui->settings_1_btn_minus_label, "-");
    lv_label_set_long_mode(ui->settings_1_btn_minus_label, LV_LABEL_LONG_WRAP);
    lv_obj_align(ui->settings_1_btn_minus_label, LV_ALIGN_CENTER, 0, 0);
    lv_obj_set_style_pad_all(ui->settings_1_btn_minus, 0, LV_STATE_DEFAULT);
    lv_obj_set_width(ui->settings_1_btn_minus_label, LV_PCT(100));
    lv_obj_set_pos(ui->settings_1_btn_minus, 10, 56);
    lv_obj_set_size(ui->settings_1_btn_minus, 45, 45);
    lv_obj_add_flag(ui->settings_1_btn_minus, LV_OBJ_FLAG_CLICK_FOCUSABLE);

    //Write style for settings_1_btn_minus, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
    lv_obj_set_style_bg_opa(ui->settings_1_btn_minus, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_color(ui->settings_1_btn_minus, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_grad_dir(ui->settings_1_btn_minus, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_border_width(ui->settings_1_btn_minus, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_radius(ui->settings_1_btn_minus, 45, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_width(ui->settings_1_btn_minus, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_color(ui->settings_1_btn_minus, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_font(ui->settings_1_btn_minus, &lv_font_montserrat_18, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_opa(ui->settings_1_btn_minus, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_align(ui->settings_1_btn_minus, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write codes settings_1_btn_plus
    ui->settings_1_btn_plus = lv_btn_create(ui->settings_1);
    ui->settings_1_btn_plus_label = lv_label_create(ui->settings_1_btn_plus);
    lv_label_set_text(ui->settings_1_btn_plus_label, "+");
    lv_label_set_long_mode(ui->settings_1_btn_plus_label, LV_LABEL_LONG_WRAP);
    lv_obj_align(ui->settings_1_btn_plus_label, LV_ALIGN_CENTER, 0, 0);
    lv_obj_set_style_pad_all(ui->settings_1_btn_plus, 0, LV_STATE_DEFAULT);
    lv_obj_set_width(ui->settings_1_btn_plus_label, LV_PCT(100));
    lv_obj_set_pos(ui->settings_1_btn_plus, 182, 56);
    lv_obj_set_size(ui->settings_1_btn_plus, 45, 45);
    lv_obj_add_flag(ui->settings_1_btn_plus, LV_OBJ_FLAG_CLICK_FOCUSABLE);

    //Write style for settings_1_btn_plus, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
    lv_obj_set_style_border_width(ui->settings_1_btn_plus, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_radius(ui->settings_1_btn_plus, 45, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_color(ui->settings_1_btn_plus, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_font(ui->settings_1_btn_plus, &lv_font_montserrat_18, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_opa(ui->settings_1_btn_plus, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_align(ui->settings_1_btn_plus, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_opa(ui->settings_1_btn_plus, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_color(ui->settings_1_btn_plus, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_grad_dir(ui->settings_1_btn_plus, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_width(ui->settings_1_btn_plus, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write codes settings_1_label_1
    ui->settings_1_label_1 = lv_label_create(ui->settings_1);
    lv_label_set_text(ui->settings_1_label_1, "Backlight");
    lv_label_set_long_mode(ui->settings_1_label_1, LV_LABEL_LONG_WRAP);
    lv_obj_set_pos(ui->settings_1_label_1, 10, 18);
    lv_obj_set_size(ui->settings_1_label_1, 220, 25);

    //Write style for settings_1_label_1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
    lv_obj_set_style_border_width(ui->settings_1_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_radius(ui->settings_1_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_color(ui->settings_1_label_1, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_font(ui->settings_1_label_1, &lv_font_montserrat_18, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_opa(ui->settings_1_label_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_letter_space(ui->settings_1_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_line_space(ui->settings_1_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_align(ui->settings_1_label_1, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_opa(ui->settings_1_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_top(ui->settings_1_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_right(ui->settings_1_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_bottom(ui->settings_1_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_left(ui->settings_1_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_width(ui->settings_1_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write codes settings_1_label_2
    ui->settings_1_label_2 = lv_label_create(ui->settings_1);
    lv_label_set_text(ui->settings_1_label_2, "Background Color");
    lv_label_set_long_mode(ui->settings_1_label_2, LV_LABEL_LONG_WRAP);
    lv_obj_set_pos(ui->settings_1_label_2, 10, 160);
    lv_obj_set_size(ui->settings_1_label_2, 220, 21);

    //Write style for settings_1_label_2, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
    lv_obj_set_style_bg_opa(ui->settings_1_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_border_width(ui->settings_1_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_radius(ui->settings_1_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_width(ui->settings_1_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_color(ui->settings_1_label_2, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_font(ui->settings_1_label_2, &lv_font_montserrat_18, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_opa(ui->settings_1_label_2, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_letter_space(ui->settings_1_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_line_space(ui->settings_1_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_align(ui->settings_1_label_2, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_top(ui->settings_1_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_right(ui->settings_1_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_bottom(ui->settings_1_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_left(ui->settings_1_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write codes settings_1_btn_3
    ui->settings_1_btn_3 = lv_btn_create(ui->settings_1);
    ui->settings_1_btn_3_label = lv_label_create(ui->settings_1_btn_3);
    lv_label_set_text(ui->settings_1_btn_3_label, "");
    lv_label_set_long_mode(ui->settings_1_btn_3_label, LV_LABEL_LONG_WRAP);
    lv_obj_align(ui->settings_1_btn_3_label, LV_ALIGN_CENTER, 0, 0);
    lv_obj_set_style_pad_all(ui->settings_1_btn_3, 0, LV_STATE_DEFAULT);
    lv_obj_set_width(ui->settings_1_btn_3_label, LV_PCT(100));
    lv_obj_set_pos(ui->settings_1_btn_3, 10, 207);
    lv_obj_set_size(ui->settings_1_btn_3, 40, 40);
    lv_obj_add_flag(ui->settings_1_btn_3, LV_OBJ_FLAG_CLICK_FOCUSABLE);

    //Write style for settings_1_btn_3, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
    lv_obj_set_style_bg_opa(ui->settings_1_btn_3, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_color(ui->settings_1_btn_3, lv_color_hex(0x16760E), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_grad_dir(ui->settings_1_btn_3, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_border_width(ui->settings_1_btn_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_radius(ui->settings_1_btn_3, 45, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_width(ui->settings_1_btn_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_color(ui->settings_1_btn_3, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_font(ui->settings_1_btn_3, &lv_font_montserrat_14, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_opa(ui->settings_1_btn_3, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_align(ui->settings_1_btn_3, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write codes settings_1_btn_4
    ui->settings_1_btn_4 = lv_btn_create(ui->settings_1);
    ui->settings_1_btn_4_label = lv_label_create(ui->settings_1_btn_4);
    lv_label_set_text(ui->settings_1_btn_4_label, "");
    lv_label_set_long_mode(ui->settings_1_btn_4_label, LV_LABEL_LONG_WRAP);
    lv_obj_align(ui->settings_1_btn_4_label, LV_ALIGN_CENTER, 0, 0);
    lv_obj_set_style_pad_all(ui->settings_1_btn_4, 0, LV_STATE_DEFAULT);
    lv_obj_set_width(ui->settings_1_btn_4_label, LV_PCT(100));
    lv_obj_set_pos(ui->settings_1_btn_4, 71, 207);
    lv_obj_set_size(ui->settings_1_btn_4, 40, 40);
    lv_obj_add_flag(ui->settings_1_btn_4, LV_OBJ_FLAG_CLICK_FOCUSABLE);

    //Write style for settings_1_btn_4, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
    lv_obj_set_style_bg_opa(ui->settings_1_btn_4, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_color(ui->settings_1_btn_4, lv_color_hex(0xbc0000), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_grad_dir(ui->settings_1_btn_4, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_border_width(ui->settings_1_btn_4, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_radius(ui->settings_1_btn_4, 45, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_width(ui->settings_1_btn_4, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_color(ui->settings_1_btn_4, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_font(ui->settings_1_btn_4, &lv_font_montserrat_14, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_opa(ui->settings_1_btn_4, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_align(ui->settings_1_btn_4, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write codes settings_1_btn_5
    ui->settings_1_btn_5 = lv_btn_create(ui->settings_1);
    ui->settings_1_btn_5_label = lv_label_create(ui->settings_1_btn_5);
    lv_label_set_text(ui->settings_1_btn_5_label, "");
    lv_label_set_long_mode(ui->settings_1_btn_5_label, LV_LABEL_LONG_WRAP);
    lv_obj_align(ui->settings_1_btn_5_label, LV_ALIGN_CENTER, 0, 0);
    lv_obj_set_style_pad_all(ui->settings_1_btn_5, 0, LV_STATE_DEFAULT);
    lv_obj_set_width(ui->settings_1_btn_5_label, LV_PCT(100));
    lv_obj_set_pos(ui->settings_1_btn_5, 131, 207);
    lv_obj_set_size(ui->settings_1_btn_5, 40, 40);
    lv_obj_add_flag(ui->settings_1_btn_5, LV_OBJ_FLAG_CLICK_FOCUSABLE);

    //Write style for settings_1_btn_5, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
    lv_obj_set_style_bg_opa(ui->settings_1_btn_5, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_color(ui->settings_1_btn_5, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_grad_dir(ui->settings_1_btn_5, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_border_width(ui->settings_1_btn_5, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_radius(ui->settings_1_btn_5, 45, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_width(ui->settings_1_btn_5, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_color(ui->settings_1_btn_5, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_font(ui->settings_1_btn_5, &lv_font_montserrat_14, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_opa(ui->settings_1_btn_5, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_align(ui->settings_1_btn_5, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write codes settings_1_btn_6
    ui->settings_1_btn_6 = lv_btn_create(ui->settings_1);
    ui->settings_1_btn_6_label = lv_label_create(ui->settings_1_btn_6);
    lv_label_set_text(ui->settings_1_btn_6_label, "");
    lv_label_set_long_mode(ui->settings_1_btn_6_label, LV_LABEL_LONG_WRAP);
    lv_obj_align(ui->settings_1_btn_6_label, LV_ALIGN_CENTER, 0, 0);
    lv_obj_set_style_pad_all(ui->settings_1_btn_6, 0, LV_STATE_DEFAULT);
    lv_obj_set_width(ui->settings_1_btn_6_label, LV_PCT(100));
    lv_obj_set_pos(ui->settings_1_btn_6, 191, 207);
    lv_obj_set_size(ui->settings_1_btn_6, 40, 40);
    lv_obj_add_flag(ui->settings_1_btn_6, LV_OBJ_FLAG_CLICK_FOCUSABLE);

    //Write style for settings_1_btn_6, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
    lv_obj_set_style_bg_opa(ui->settings_1_btn_6, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_color(ui->settings_1_btn_6, lv_color_hex(0x0073c8), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_grad_dir(ui->settings_1_btn_6, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_border_width(ui->settings_1_btn_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_radius(ui->settings_1_btn_6, 45, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_width(ui->settings_1_btn_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_color(ui->settings_1_btn_6, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_font(ui->settings_1_btn_6, &lv_font_montserrat_14, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_opa(ui->settings_1_btn_6, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_align(ui->settings_1_btn_6, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write codes settings_1_label_value
    ui->settings_1_label_value = lv_label_create(ui->settings_1);
    // lv_label_set_text(ui->settings_1_label_value, "80");
    sprintf(buf,  "%d", counter);
    lv_label_set_text(guider_ui.settings_1_label_value, buf);
    lv_bar_set_range(guider_ui.settings_1_bar_1, 0, 100);
    lv_bar_set_value(guider_ui.settings_1_bar_1, counter, LV_ANIM_OFF);
    lv_label_set_long_mode(ui->settings_1_label_value, LV_LABEL_LONG_WRAP);
    lv_obj_set_pos(ui->settings_1_label_value, 80, 87);
    lv_obj_set_size(ui->settings_1_label_value, 77, 12);

    //Write style for settings_1_label_value, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
    lv_obj_set_style_border_width(ui->settings_1_label_value, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_radius(ui->settings_1_label_value, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_color(ui->settings_1_label_value, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_font(ui->settings_1_label_value, &lv_font_montserrat_14, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_opa(ui->settings_1_label_value, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_letter_space(ui->settings_1_label_value, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_line_space(ui->settings_1_label_value, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_align(ui->settings_1_label_value, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_opa(ui->settings_1_label_value, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_top(ui->settings_1_label_value, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_right(ui->settings_1_label_value, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_bottom(ui->settings_1_label_value, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_left(ui->settings_1_label_value, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_width(ui->settings_1_label_value, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

    //The custom code of settings_1.
    lv_group_add_obj(main_group, ui->settings_1_btn_minus);
    lv_group_add_obj(main_group, ui->settings_1_btn_plus);
    lv_group_add_obj(main_group, ui->settings_1_btn_3);
    lv_group_add_obj(main_group, ui->settings_1_btn_4);
    lv_group_add_obj(main_group, ui->settings_1_btn_5);
    lv_group_add_obj(main_group, ui->settings_1_btn_6);
    //Update current screen layout.
    lv_obj_update_layout(ui->settings_1);

    //Init events for screen.
    events_init_settings_1(ui);
}
